﻿using System.Xml;
using System.Xml.Serialization;

namespace Bpmn.Xml;

/// <remarks/>
[Serializable]
[XmlType(Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", TypeName = "tParticipant")]
[XmlRoot("participant", Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", IsNullable = false)]
public partial class Participant : BaseElement
{
    /// <remarks/>
    [XmlElement("interfaceRef")]
    public XmlQualifiedName[] InterfaceRef { get; set; } = default!;

    /// <remarks/>
    [XmlElement("endPointRef")]
    public XmlQualifiedName[] EndPointRef { get; set; } = default!;

    /// <remarks/>
    [XmlElement("participantMultiplicity")]
    public ParticipantMultiplicity ParticipantMultiplicity { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("name")]
    public string Name { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("processRef")]
    public XmlQualifiedName ProcessRef { get; set; } = default!;
}
